﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace furion.blog.Domain.MySQL
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("member")]
    public class Member
    {
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="member_id" ,IsPrimaryKey = true   )]
         public long MemberId { get; set; }
        /// <summary>
        /// 手机号码 
        ///</summary>
         [SugarColumn(ColumnName="phone"    )]
         public string Phone { get; set; }
        /// <summary>
        /// 密码 
        ///</summary>
         [SugarColumn(ColumnName="password"    )]
         public string Password { get; set; }
        /// <summary>
        /// 姓名 
        ///</summary>
         [SugarColumn(ColumnName="real_name"    )]
         public string RealName { get; set; }
        /// <summary>
        /// 昵称 
        ///</summary>
         [SugarColumn(ColumnName="nick_name"    )]
         public string NickName { get; set; }
        /// <summary>
        /// 性别  MAN WOMAN UNKNOW 
        /// 默认值: UNKNOW
        ///</summary>
         [SugarColumn(ColumnName="sex"    )]
         public string Sex { get; set; }
        /// <summary>
        /// 生日yyyy-MM-dd 
        ///</summary>
         [SugarColumn(ColumnName="birthday"    )]
         public DateTime? Birthday { get; set; }
        /// <summary>
        /// 积分(整数) 
        ///</summary>
         [SugarColumn(ColumnName="integral"    )]
         public decimal? Integral { get; set; }
        /// <summary>
        /// 余额(单位：分) 
        ///</summary>
         [SugarColumn(ColumnName="balance"    )]
         public decimal? Balance { get; set; }
        /// <summary>
        /// 头像 
        ///</summary>
         [SugarColumn(ColumnName="avatar"    )]
         public string Avatar { get; set; }
        /// <summary>
        /// 小程序openid 
        ///</summary>
         [SugarColumn(ColumnName="mini_program_openid"    )]
         public string MiniProgramOpenid { get; set; }
        /// <summary>
        /// 微信公众号openid 
        ///</summary>
         [SugarColumn(ColumnName="wechat_openid"    )]
         public string WechatOpenid { get; set; }
        /// <summary>
        /// 注册日期 
        ///</summary>
         [SugarColumn(ColumnName="created_time"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新日期 
        ///</summary>
         [SugarColumn(ColumnName="updated_time"    )]
         public DateTime? UpdatedTime { get; set; }

        [SugarColumn(ColumnName = "email")]
        public string Email { get; set; }

        [SugarColumn(ColumnName = "status")]
        public string Status { get; set; }

        [SugarColumn(ColumnName = "is_delete")]
        public string IsDelete { get; set; }

        /// <summary>
        /// 位置信息(json格式)
        /// </summary>
        [SugarColumn(ColumnName = "location")]
        public string Location { get; set; } = string.Empty;

        /// <summary>
        /// 微信号
        /// </summary>
        [SugarColumn(ColumnName = "wechat")]
        public string Wechat { get; set; } = string.Empty;
    }
}
